package com.suxin.exception.utils;

import com.suxin.core.domain.RestException;

/**
 * @author Tang
 * @classname ExceptionFactory
 * @description [ 构建异常的工厂 ]
 * @date 2023/2/7 14:20
 */
public class ExceptionFactory {

    private ExceptionFactory() {
    }

    public static RuntimeException wrapRuntimeException(String msg) {
        return new RuntimeException(msg);
    }

    public static RuntimeException wrapRestException(String msg) {
        return new RestException(msg);
    }

}
